package com.rxyb.carbutler.gateway.timmer;

import com.rxyb.carbutler.gateway.dto.timmer.TimmerExeReq;
import com.rxyb.carbutler.gateway.dto.timmer.TimmerExeRsp;
import com.rxyb.core.respone.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 发送微信提醒
 *
 * @author duyh
 * @date 2020/6/4
 */
@Slf4j
@Controller
@RequestMapping("/timmer")
public class SendWechatRemind {


    /**
     * 预约临近
     *
     * @author duyh
     */
    @PostMapping(value = "apptCloser", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public R<TimmerExeRsp> apptCloser(@Validated @RequestBody TimmerExeReq timmerExeReq) {
        log.info("This is SendWechatRemind.apptCloser.......");
        return R.ok(new TimmerExeRsp());
    }

    /**
     * 年检到期
     *
     * @author duyh
     */
    @PostMapping(value = "annualSurvey", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public R<TimmerExeRsp> annualSurvey(@Validated @RequestBody TimmerExeReq timmerExeReq) {
        log.info("This is SendWechatRemind.annualSurvey.......");
        return R.ok(new TimmerExeRsp());
    }


}
